Ok question. In previous post I made, someone said to look at the Mach4Core API Help file for the codes I'll need, but it doesn't list CycleStart () as such it references the code in lua as mcCntlCycleStart so what's the difference?
Daz, how does this code look?
end,
[mc.ISIG_INPUT0] = function (state)
if (state == 1) then
CycleStart()
end
end,
[mc.ISIG_INPUT2] = function (state)
if (state == 1) then
mc.mcCntlFeedHold()
end
end,
[mc.ISIG_INPUT3] = function (state)
if (state == 1) then
mc.mcCntlMdiExecute(inst, "G01F100")
end
end,
[mc.ISIG_INPUT4] = function (state)
if (state == 1) then
mc.mcCntlMdiExecute(inst, "G01F1")
end
end,
[mc.ISIG_INPUT5] = function (state)
if (state == 1) then
mc.mcCntlMdiExecute(inst, "G01F5")
end
end,
[mc.ISIG_INPUT6] = function (state)
if (state == 1) then
mc.mcCntlMdiExecute(inst, "G01F10")
end
end,
[mc.ISIG_INPUT7] = function (state)
if (state == 1) then
mc.mcCntlMdiExecute(inst, "G0G53X0Z0")
end
end,
[mc.ISIG_INPUT1] = function (state)
-- if (state == 1) then
-- CycleStart()
-- --else
-- --mc.mcCntlFeedHold (0)
-- end
end,
Also need to use a physical button to control jogging, such as moving x axis up and down. Looked at the mach4api help file and haven't found what code I need. Thanks.