I am trying to do something the easy way, which I think can be done but I don't know how.
I have a 16 bit register that will give me four groups of four bits depending on the equipment installed.
Bits 0-3 are ignored, 4-7 will give me a value, 8-11 will give me another value, and 12-15 another value.
Each group will be decimal value 2, 3, or 4 in binary.
Can I convert each group of bits to a decimal value while ignoring the rest?
I would then use the HMI to display which equipment was installed.
thanks
I have a 16 bit register that will give me four groups of four bits depending on the equipment installed.
Bits 0-3 are ignored, 4-7 will give me a value, 8-11 will give me another value, and 12-15 another value.
Each group will be decimal value 2, 3, or 4 in binary.
Can I convert each group of bits to a decimal value while ignoring the rest?
I would then use the HMI to display which equipment was installed.
thanks