what's with the WE Kimasabi? - it's your baby
Two things I have thought of Mach must store the T# that is in the gcode in a variable to have it ready to go. We need to access that VAR to have the toolchanger move to that slot in advance of the toolchange. THat way when mach sees the T# and stores the var the carousel can rotate into position and when the M6 is called it will already be at location. Fanuc style.
Well yes and no. If you want this then you'd have to pre-process the g-code (messy) or somehow dig into Mach's lookahead mechanism (I wish you luck). Its a reasonable thought sure, but on the other hand, when Mach hits a T# the axis have to move to the toolchange position anyway. Couldn't the carousel just spin at the same time whilst the axis are getting there?
(I just took a quick look to see if the fact that Mach can pre-process macros as it builds the toolpath could be used - but it seems M6 is a special case and is not pre-run at this time - unlike user macros for example)
NOW I know some people say it is best left up to PLC to do the work, BUT the way I see it MACH is really NOT doing anything special at tool change time(;-)Axis's are normally idle why not put it to work taking care of the tool changer as well(;-) We have a TON of processor why not use it??
Seems reasonable to me.
BTW in your example code you've got an M6 followed on the next line by a T#. Is that just a typo? I always thought the syntax was T#
before the M6 (and usually on the same line) yes/no?
Cheers
Ian
A quick edit:
NOW I know some people say it is best left up to PLC to do the work, BUT the way I see it MACH is really NOT doing anything special at tool change time(;-)Axis's are normally idle why not put it to work taking care of the tool changer as well(;-) We have a TON of processor why not use it??
Actually I'm not so sure... I'm thinking maybe you
have to have independant control of the arm and carousel... thinks...