Currently we're facing problem regarding bit calculations (AND, OR, NOT, XOR, etc.). PLC will send the data in the form of a binary bit packed word (16 bits), and I need to find where bit with value 1, in that first 10 sequence.
For example, if I have the bit sequence 11100010110001110010110000010111, then I should know that I need to read the status based on bit in the sequence number 1, 2, 3, and 5.
And the second is, if I have value < 4,000,000,000, the bit calculations working fine, but if I have value more than 4,000,000,000, the bit calculations is not working. For example, if I have formula “862,022,950 AND 348”, then the AF Analysis will show me the correct result, which is 260. But if I have formula “4,294,966,695 AND 348”, the AF Analysis will show me wrong result, which is 0, because it should be 260.
Kindly need your help regarding this issues.