Trying to execute Gcode from LUA. This script works fine:
local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "G0 X10 Y10\n")
However, with the below function, the numbers in the DROs do not continuously update, but only when the final destination is reached.
local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G0 X10 Y10\n")
When trying to execute two line of Gcode, like below, the DROs again don't update continously, but only when the final point is reached.
local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "G0 X10 Y10\n")
mc.mcCntlGcodeExecute(inst, "G0 X5 Y5\n")
What is the correct way to programm in order for the DROs to continuously update?
Dan