I have a question about getting some bits out of some word (int). One word will contain 5 bits that corresponding to some status lamps for example. Bit 0 will turn off-on Lamp 1, bit 1 will turn off-on Lamp 2… Is there any way to accomplish this goal.
Hi,
You should create an input channel of Calculated Discrete type for each bit and use the formula GetBit for these channels
Example: GetBit(Val(101), 1) – gets 1st bit from channel 101