I'm just about to build a remote controller for my Lathe.
To indicate the 100% level, e.g, for the FRO, i want to use a LED.
I have a code like this.
if CurrentFRO == 100 then
local hReg = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT0)
local Ret = mc.mcSignalSetState(hReg, true)
mc.mcCntlSetLastError(inst, "is 100 " ..CurrentFRO)
else
local hReg = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT0)
Ret = mc.mcSignalSetState(hReg, false)
mc.mcCntlSetLastError(inst, "not 100 " ..CurrentFRO)
end
I asigned the Output0 to PokeysDeviceBla, Pin30 in the Mach4 Output Signals Tab.
But the LED will not lit up when the FRO is 100%.
The strange thing is, the Output is not listed in the Pokeys Plugin settings mapping Tab. But all the Inputs i used.
Is there a additional step needed to use the Outputs.?
All other functions like the Encoder to controll the FRO, SRO, Jograte and all Buttons working like expected.
Also when i play with the Pokeys software, the LED is working.