In the Mach4 Manual it says that if i load the following script into the Signal Script section i can get an external switch attached to input 1 to work.
This is the code listed in the manual and i loaded into the Signal Script ... note the first 3 lines were already there when it came up and the rest i added below from the MACH4 Manual.
I have checked all the diagnostics in both SmartBOB and MACH4 and they indicate my switch is working properly.
I have also attached my profile set up for your review.
CODE:
if SigLib[sig] ~= nil then
SigLib[sig](state);
end
if (sig == mc.ISIG_INPUT1) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end
SignalTable = {
[mc.ISIG_INPUT1] = function (on_off)
if (on_off == 1) then
mc.mcCntlCycleStart(inst)
end
end
}
thank you
Scott