Hello Guest it is November 08, 2024, 10:09:52 PM

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

0 Members and 1 Guest are viewing this topic.

Offline TonyM

*
  •  12 12
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
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
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?