1
Mach4 Toolbox / Re: Mach4: API "Gcode File" syntax error
« on: September 10, 2018, 07:59:21 AM »
Thank you Mr. Craig, there is no error now, the correct code is:
inst = mc.mcGetInstance()
local LineNumber = 5
local Gcodeline
mc.mcCntlGetGcodeLine(inst, LineNumber, Gcodeline, 128) --Get line number 5 of the Gocde file loaded.
or: Gcodeline = mc.mcCntlGetGcodeLine(inst, LineNumber)--Get line number 5 of the Gocde file loaded.
inst = mc.mcGetInstance()
local LineNumber = 5
local Gcodeline
mc.mcCntlGetGcodeLine(inst, LineNumber, Gcodeline, 128) --Get line number 5 of the Gocde file loaded.
or: Gcodeline = mc.mcCntlGetGcodeLine(inst, LineNumber)--Get line number 5 of the Gocde file loaded.