Hi,
what did you name your macro? If you named it M6 then I would expect it to fail.
Mach4's Gcode interpreter converts all Gcode to lowercase and strips out the leading zeros, thus:
M6
m6
m06
and
M06
all get treated the same because Windows file names are case insensitive. Not withstanding that case insensitivity
there are occasions when it does create an error, and I think you have found one.
All Gcode, including m codes, should be lowercase and without leading zeros.
When you rename your macro make sure you delete the existing ****.mcc files. If Mach finds an appropriately named
***.mcc file it wont bother to compile a fresh one from the ***.mcs file.
There are two interpretations of the T word in a line of Gcode.
m6 t5........you might expect that after the tool change tool 5 would be in the spindle. This is the common interpretation
and is familiar to us from Mach3. However in industrial machines another interpretation is possible and even desirable.
That interpretation is that tool 5 is the tool to be installed into the spindle at the NEXT tool change. This would mean
that tool carousal is ready and waiting and therefore the tool change is quicker.
Configure/Control/Tools per the attached pic.
Craig