Compact HMI 800 bits from integer
I'm using Compact HMI 800 V6.0 with AC500 PLC. They are communicating through ABB OPC gateway V2.3. PLC is sending 16 bit status integers to HMI. So I'm asking is there an easy way to show invidual bits of these integers in my HMI displays? I tried to use the #bit(bit) method and use integer[bit] method but couldn't get either one working. Also I can't utilize greater, equal and less than integer operators because status words consists of invidual bits. Thus masking the bits with these operators would require excessive calculations.
Allright. I got this working somehow. All I had to do is to link the integer variable to expression variables table in the process graphic builder. Is this ok to do?
I made a small simulation for this aim.
I created a tag called "Titus" and type is Long.
Then on Graphic Display, I created some shapes for Bit0, Bit1 and Bit2.
First Shape, Fill Color properties should be like this:
"if Titus:Value#Bit(0) then
Please see attached file for more details.
Hope it helps.