the other way to do it is as a signal table, it work's the same as what Daz said to do
SignalTable = {001,
[mc.ISIG_INPUT0] = function (on_off)
if (on_off == 1) then
mc.mcCntlCycleStart(inst)
end
end
}
SignalTable = {002,
[mc.ISIG_INPUT1] = function (on_off)
if (on_off == 1) then
mc.mcCntlCycleStop(inst)
end
end
}
SignalTable = {003,
[mc.ISIG_INPUT2] = function (on_off)
if (on_off == 1) then
mc.mcCntlReset(inst)
end
end
}
SignalTable = {004,
[mc.ISIG_INPUT3] = function (on_off)
if (on_off == 1) then
mc.mcCntlFeedHold(inst)
end
end
}