# Addressing bits with OPC - UA

**URL:** <https://forum.inductiveautomation.com/t/addressing-bits-with-opc-ua/20797>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [November 13, 2018, 10:06am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-opc-ua/20797 "2018-11-13T10:06:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![c.bertulli](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@c.bertulli](https://forum.inductiveautomation.com/u/c.bertulli)\
**Post date:** [November 13, 2018, 10:06am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-opc-ua/20797/1 "2018-11-13T10:06:39Z")

</div>

Hi All,

I need to access a single bit from an int OPC Tag. From what I know you just have to add a .# and change the Tag’s datatype to boolean. That’s exactly what I’m doing, but is not working. The tag says “Bad Quality”.  
FYI:  
-I’m using Ignition 7.9.10  
-I have no device configurated since I’m using KEPServer with OPC - UA  
-The PLC is a Logix ( CompactLogix / ControlLogix )

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [November 13, 2018, 11:00am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-opc-ua/20797/2 "2018-11-13T11:00:37Z")

</div>

In expression language you can use getbit() function…[https://docs.inductiveautomation.com/display/DOC79/getBit](https://docs.inductiveautomation.com/display/DOC79/getBit)  
In scripting… [http://forum.inductiveautomation.com/t/getbit-equivalent-for-use-in-a-client-event-script/15538](http://forum.inductiveautomation.com/t/getbit-equivalent-for-use-in-a-client-event-script/15538)

Also… searching forum for just getbit gives plenty results… [http://forum.inductiveautomation.com/search?q=getbit](http://forum.inductiveautomation.com/search?q=getbit)

---

<div class="post-metadata">

**Author:** ![c.bertulli](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@c.bertulli](https://forum.inductiveautomation.com/u/c.bertulli)\
**Post date:** [November 13, 2018, 12:53pm UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-opc-ua/20797/3 "2018-11-13T12:53:41Z")

</div>

Thanks! 😀 😀 😀 😀
