Hi All,
more basic questions about Mach/Lua/Life and everything...
How does Machs IO differ from Machs signals?
hIo, rc = mc.mcIoGetHandle(
number mInst,
string path)
seems to indicate if I could provide a path to an IO I should get a valid handle back. As result of another thread I'm trying to work out if its possible
to get a valid handle for 'fwdrevbit', the name of an IO in 'function1' of 'modbus0' I wrote a macro just to see whether it would execute which included:
local handle,retcode=mc.mcIoGetHandle(inst,"modbus0/function1/fwdrevbit")
It didn't seem to return a valid handle. fwdrevbit is a Mach Output according to the Modbus plugin. That is, if I understand the IO fwdrevbit is registered
and owned by Modbus.
Again as part of the other thread I went to Machs Output Signals page and selected Machs Output#0 and was able to assign it to device modbus0 and to the
IO/signal rwdrevbit. I think the OP can run from there, he can use Output#0 or any other output he wants to signal the Modbus device. Given that Machs core
seem to recognise the IO/signal I created should I not be able to address it directly with an IoGetHandle rather than tieing it to a signal and use SignalGetHandle?
Craig