Getting a bit status
Posted: Fri Sep 21, 2018 7:43 pm
So the first of the .Net questions is here.
What are the options for reading specific bits?
I can access the bits via KM_MainStatus.BitsState, but obviously that involves knowing the exact word and bit I'd like to check. That would be manageable if the bits were fixed, but they're not likely to be.
I have also found the KM_IO class, but documentation is a bit thin, and my guesses at filling in the blanks has so far not produced any result.
Is there any chance of a code snippet on how to check a bit status (I'm currently wanting to check bit 6)?
Also is there likely to be any performance/communication hit by using KM_IO instead of the MainStatus?
For this I'm only looking at monitoring two or three bits, but I will also be looking at being able to set a virtual bit or two as well.
What are the options for reading specific bits?
I can access the bits via KM_MainStatus.BitsState, but obviously that involves knowing the exact word and bit I'd like to check. That would be manageable if the bits were fixed, but they're not likely to be.
I have also found the KM_IO class, but documentation is a bit thin, and my guesses at filling in the blanks has so far not produced any result.
Is there any chance of a code snippet on how to check a bit status (I'm currently wanting to check bit 6)?
Also is there likely to be any performance/communication hit by using KM_IO instead of the MainStatus?
For this I'm only looking at monitoring two or three bits, but I will also be looking at being able to set a virtual bit or two as well.