2
« on: March 06, 2021, 08:11:49 AM »
This is what happens when you get too clever...
I have successfully got Mach4 running and mastered the setup OK.
Then I added an MPG with LUA Script that I got from the Mach site.......
Initially it ran but was glitchy.....
[the function that sets the axis will not set it to 'no axis' when axis switch is off - rather it sets it to the Y axis when the switch is off. Any ideas on this would be appreciated. I have triple checked the pins, the inputs, the code etc but simply cannot see why the 'if statement' will 'see' the X,Y & Z axes but not the final 'else' that says nothing is selected....but this is secondary.....]
Then I noticed one version of the LUA code included a call to the new MPG functions (axis, magnification and stop) in order to initialise the new script.
I foolishly added these calls ahead of the code that sets them up - instead of at the end of the script.
And now I get a fatal error no matter what profile I try to load. Mach4 simply will not load.
I have tried editing the 'screenscript.lua' file to remove the offending code, but on restart this file is rewritten with the code back in it - and Mach4 won't load.
I know I screwed up big time here! Any thoughts on how to get my Mach4 back very gratefully received!
Regards Simon