Machsupport Forum
Mach Discussion => Mach4 General Discussion => Mach4 Toolbox => Topic started by: DMYTRO on February 22, 2023, 10:17:50 AM
-
working on editing M6 macro .
file compiled normally
When trying to run it Mach4 will run but not the edited file but generic M6.
On debug screen I am getting error ( see pics)
It looks like Mach4 is reading macro from the different location then my Macro file .
How do I re-direct mach4 to look into proper folder?
-
Hi,
when the Gcode interpreter gets a block of code it converts it all to lowercase, strips out leading zeros and any whitespace.
When Mach encounters:
M06 or
M 6
what it actually searches for is m6.
In most cases Windows is not case sensitive and therefore a search for m6 will return M6, but not always. Try renaming your macro to m6 not M6.
Next possibility is that there is a complied file somewhere; m6.mcc, That file will be returned even if you have a later m6.mcs. In the first instance go through your
Profile/Macros folder very closely deleting every m6 file you come across except the one m6.mcs you want to run. Now close Mach4 and restart so that the .mcs file
is complied and put into the screen script. Now try again.
Craig