22.12.2016, 10:09
My 16-bit register is a bitmask, e.g.:
Input register 3x0006 consists of:
Bit 0 = Dampers open
Bit 1 = Fire dampers open
Bit 2 = Fire dampers closed
Bit 3 = Status feedback pump
Etc.
I'm interested in getting out the status of a single bit within a register. Not the whole register acting as a bit, 0 or 1.
Is it possible?
Input register 3x0006 consists of:
Bit 0 = Dampers open
Bit 1 = Fire dampers open
Bit 2 = Fire dampers closed
Bit 3 = Status feedback pump
Etc.
I'm interested in getting out the status of a single bit within a register. Not the whole register acting as a bit, 0 or 1.
Is it possible?