151
Mach4 General Discussion / Re: Simple Lua question
« on: March 30, 2017, 09:59:51 PM »
Still getting the error that the call for mc.mcCntlGCodeExecuteWait which is nil
The Inst is not nil Very confusing.
Not understanding all the issues with your post Re: Mach4/Lua script do's and Dont's
Do I have to define the function for mc.mcCntlGCodeExecuteWait as I did in the screen load script? Below is the script I copied from an example
function GCodeExecute(GCodeString)
local rc = mc.mcCntlGCodeExecuteWait(inst, GCodeString) --This is the standard function call for executing gcode. it waits for motor feedback before continuing in the file.
if rc ~= mc.MERROR_NOERROR then return "GCode failed", false end
end
I have a long way to go to...
The Inst is not nil Very confusing.
Not understanding all the issues with your post Re: Mach4/Lua script do's and Dont's
Do I have to define the function for mc.mcCntlGCodeExecuteWait as I did in the screen load script? Below is the script I copied from an example
function GCodeExecute(GCodeString)
local rc = mc.mcCntlGCodeExecuteWait(inst, GCodeString) --This is the standard function call for executing gcode. it waits for motor feedback before continuing in the file.
if rc ~= mc.MERROR_NOERROR then return "GCode failed", false end
end
I have a long way to go to...