Hi all, I have a very simple Lua macro I am trying to get working for my avid 6060pro running mach4 on an ESS with a CncDepot RM15 spindle. I have been very successful with all my macros in Lua until this point and hoping someone can tell me where I am going wrong.
All I am trying to do is get my Lua scripted macro to execute "M3 S1000" g-code. My macro has my machine go to a given machine location, perform some movements, and then return. Everything works great until I add into the gcode execute lines for the "M3 S1000" when that is added and I run the macro, Mach4 just sits there and the timer runs but no actions are taken and the spindle does not start. I have also noticed it seems to create something in the background that requires me to exit Mach4, and go into task manager to force end the GUI.
Basically, am I not able to call an M3 to start the spindle within a Lua script?
Thanks for any help you can provide.