OOOppps TYPO ALERT
mc.mcGetInstance is a function and is missing the () at the end, so should of been mc.mcGetInstance() - although if this is in the screen load script then it is already declared at the beginning.
I also noticed I had`nt ended any of the if statements, so heres the same code without the typo`s
--------------------------------------------
----Cycle Start buttons on MachMate
--------------------------------------------
local inst = mc.mcGetInstance()
SigLib = {
[mc.ISIG_INPUT1] = function (state)
if (state == 1) then
mc.mcCntlCycleStart(inst)
end
end,
---------------------------------------------
----Feed Hold Buttons on MachMate
----------------------------------------------
[mc.ISIG_INPUT2] = function (state)
if (state == 1) then
mc.mcCntlFeedHold(inst)
end
end,
[mc.ISIG_INPUT3] = function (state)
if (state == 1) then
-- do something
end
end,
[mc.ISIG_INPUT4] = function (state)
if (state == 1) then
-- do something
end
end,
[mc.ISIG_INPUT5] = function (state)
if (state == 1) then
-- do something
end
end
} -- etc.............................
DazTheGas