Hello Guest it is October 20, 2021, 07:34:15 PM

Author Topic: mach4 module help  (Read 513 times)

0 Members and 1 Guest are viewing this topic.

Offline gorf23

*
  •  175 175
    • View Profile
mach4 module help
« on: September 07, 2018, 11:01:22 AM »
I create a module that's I have in the profile folder I am calling it with a button press I also have it loaded in with the screen load script.

I have a couple of mc.mcCntlGcodeExecute calls and its works fine dro's move and seems to be running ok no gui lockup.
The problem I am having when I add some more code to the module, may not be the fist time I add code but maybe the second or third then I start getting the gui lockup and even if I remove the lines on new code doesn't matter gui will still lockup the only way I have been able to fix it has been to create a new profile and reenter the code..

any suggestion as to what may cause this?.

Thanks gary
Re: mach4 module help
« Reply #1 on: September 07, 2018, 12:05:22 PM »
Make sure you haven't saved any previous modules(ie. backups) with the same function names in the modules directory.  Lua compiles all files in that directory and you can get conflicting addresses for the functions. 

Just a thought,

HTH

RT