Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: TonyM on April 29, 2023, 06:39:02 AM
-
So I have a emcoturn120 converted to mach4 and all axis work, I wanted to have a try at making an m6 macro. It works when I run it in the editor, but in MDI the macro doesn't do anything. My macro is:
function m6()
wx.wxMessageBox('test')
end
if(mc.mcInEditor() == 1) then
m6()
end
Is there anything I forgot?
Thanks for the help :)
-
If your m6.mcs filename is M6.mcs try renaming with lowercase. Also check to make sure that the macro is in the macros directory for the profile you are using.
HTH
RT
-
If your m6.mcs filename is M6.mcs try renaming with lowercase. Also check to make sure that the macro is in the macros directory for the profile you are using.
HTH
RT
thank you, but this was allready correct. Any other ideas?
-
it turns out the "local rs232 = require("luars232")" part is the problem, when i comment out this part it will run the m6 command. What is the fix for this?