Hi all,
It's my first post, so please accept my apologies if I should have posted this somewhere else. I have a custom 5-axis router running Mach4 4.2.0.4300 with a PoKeys57CNC motion controller. My profile (johnny5) was created using the PoKeys setup wizard and uses the wx6 screenset.
I am unable to get any macros to execute. I have tried M6 and M30. Both are silent — no errors, no popups, nothing. The macro files are in C:\Mach4Hobby\Profiles\johnny5\Macros\ and are correctly structured Lua scripts following the standard format:
luafunction m6()
inst = mc.mcGetInstance()
mc.mcCntlSetLastError(inst, "test")
end
if (mc.mcInEditor() == 1) then
m6()
end
Files are saved with ANSI encoding. ZeroBrane compiles them with no errors. However no .mcc files are ever created in the macros folder after restarting Mach4.
The diagnostic log shows M30's internal rewind firing 125ms after cycle start with no macro involvement at all — the macro is simply never called.
The johnny5 profile folder does not contain a Modules subfolder. The default Mach4Mill profile does not appear to have .mcc files either.
Doe anyone know what is preventing macro compilation and execution in this profile please? Is there a configuration step I am missing when setting up a new profile from scratch via the PoKeys wizard?
Thanks very much in advance for reading, and giving this some thought.