You need to modify the M6start and M6end macros.

I've not used Mach 3 for a few years, so it'll probably be better searching over on the mach forums.