Hello Guest it is March 29, 2024, 02:41:53 AM

Author Topic: Mach4 hobby macro not running  (Read 425 times)

0 Members and 1 Guest are viewing this topic.

Offline TonyM

*
  •  12 12
    • View Profile
Mach4 hobby macro not running
« 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  :)
Re: Mach4 hobby macro not running
« Reply #1 on: April 30, 2023, 04:31:08 PM »
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

Offline TonyM

*
  •  12 12
    • View Profile
Re: Mach4 hobby macro not running
« Reply #2 on: May 05, 2023, 06:11:18 AM »
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?

Offline TonyM

*
  •  12 12
    • View Profile
Re: Mach4 hobby macro not running
« Reply #3 on: May 05, 2023, 09:02:16 AM »
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?