# Visualisation based on bits in OPC byte

**URL:** <https://forum.inductiveautomation.com/t/visualisation-based-on-bits-in-opc-byte/10904>\
**Category:** Ignition\
**Created:** [December 11, 2015, 5:05pm UTC](https://forum.inductiveautomation.com/t/visualisation-based-on-bits-in-opc-byte/10904 "2015-12-11T17:05:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinko](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@Vinko](https://forum.inductiveautomation.com/u/Vinko)\
**Post date:** [December 11, 2015, 5:05pm UTC](https://forum.inductiveautomation.com/t/visualisation-based-on-bits-in-opc-byte/10904/1 "2015-12-11T17:05:24Z")

</div>

Hi, I’m new at Ignition and I need help.

I have OPC tag, a byte, that has 8 bits of status values.  
This OPC server doesn’t support bit type.

So let’s say that this 8 bits are status for a pump:

bit 1 - error 1  
bit 2 - error 2  
…

I want to place text on the window “Pump 1 error 4”, and only use visibility property, so for example when bit 4 is “1”, this text is visible.

So my problem is that when I use visibility, I can only select the whole byte, and if any bit is “1” this text is visible.

So, i want to use bits in byte tag to trigger properties of visual objects.

How to do that in Ignition? Script maybe?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 11, 2015, 5:08pm UTC](https://forum.inductiveautomation.com/t/visualisation-based-on-bits-in-opc-byte/10904/2 "2015-12-11T17:08:44Z")

</div>

You could make 8 expression tags in Ignition and use the getBit() expression function to get each of the bits.

---

<div class="post-metadata">

**Author:** ![Vinko](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@Vinko](https://forum.inductiveautomation.com/u/Vinko)\
**Post date:** [December 11, 2015, 8:31pm UTC](https://forum.inductiveautomation.com/t/visualisation-based-on-bits-in-opc-byte/10904/3 "2015-12-11T20:31:38Z")

</div>

Thanks, I found that solution also on Inductive University: Expression Binding – Bit Functions video.

I’m working few hours with Ignition and I have working Siemens PLC, with trends, alarms.  
Really great after all those huge SCADAs like WinCC(installing WinCC takes longer:) ).
