DazTheGas has updated his code again to fix an omission. Here is
a copy of his post on the MachSupport forum:
//////////////////////////////////////////////////////////////////////
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
Code:
--------------------------------------------
----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.............................
//////////////////////////////////////////////////////////
Firechief, who posted the original question, has reported
success with this new code.