AnsweredAssumed Answered

How to perform binary AND operations

Question asked by MTESLA on Mar 5, 2020
Latest reply on Mar 5, 2020 by LalBabuShaik

Hello I would like to know how to perform an operation similar to BITAND in excel within PI AF.

 

I have 32 bit binary word where each bit represents a status of valve. I am only concerned with three particular bits and want to mask out the rest and would like to do it within PI AF.

 

Currently the 32 bit word is represented as an INT 32.

Outcomes