I'm in the last stages of a Mach3 retro on a machine that I had running ok under the Industry Controls version of Mach3.  Everything is pretty much up and running except the tool changer.  I edited the m6start macro that I used in Industry Controls  to work in Mach3, there are some very slight differences.  Also in the conversion the a axis became the c axis.  The macro runs fine from the VB window, both stepping through with F7 and running with the play button.  However when I call an M6 from Mach I get a compile error in the message window.  Any ideas?  This was a running macro.  The changes made were removing a door interlock, changing a to c, changing an m code for enabling position control of the spindle, changing "codesingle()" to "code()" in all instances.  I think that's it for changes.
Any help is greatly appreciated.  Thank you.
TOM