# Addressing Bits with Allen-Bradley Compact Logix; how to link to an asset?

**URL:** <https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673>\
**Category:** Ignition\
**Created:** [April 21, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673 "2022-04-21T09:24:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Lindner](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@Ben\_Lindner](https://forum.inductiveautomation.com/u/Ben_Lindner)\
**Post date:** [April 21, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/1 "2022-04-21T09:24:35Z")

</div>

hello all,

Using allen bradly PLC and created a screen in ignition. I can tag most things but the tags provided from a previous contractor are long addresses i cant adress properly in the tag interface.

Take this tag for example = B3[23].15

Its a bit used for a “cooling call” in a compressor system.

When i open the tag tree in the designer (were all the imported tags are) i can only drill so fare down into the tag tree to only reference B3[23].

How do i reference the full tag?

I can reference everything else properly and its working just issues with long tags.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [April 21, 2022, 11:44am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/2 "2022-04-21T11:44:20Z")

</div>

I’m not sure I would call that a long tag name, either way, just add the bit reference to the end after selecting the Word reference: `ns=1;s=[YourDevice]B3[23].15`

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 21, 2022, 11:48am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/3 "2022-04-21T11:48:27Z")

</div>

`B3[23].15` is a **bit** address. It’s bit 15 of word 23 in boolean block 3.

![Mirologix tags](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/1/d1da6d582b8dc12f7bb45c450dce09b088d88a00.png)

You should be able to select the individual bits from the tag browser. The screengrab is from a MicroLogix.

* * *

By the way, it’s “Allen-Bradley CompactLogix”. It will matter for search engines and legibility.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [April 21, 2022, 11:57am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/4 "2022-04-21T11:57:51Z")

</div>

I checked and the ControlLogix, CompactLogix driver doesn’t allow you to drill down to the bit level, you have to add it manually.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/3/931e4be78c09db7558bc7465ab5ba5d20b3a421a.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Lindner](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@Ben\_Lindner](https://forum.inductiveautomation.com/u/Ben_Lindner)\
**Post date:** [April 22, 2022, 4:41am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/5 "2022-04-22T04:41:22Z")

</div>

Yea your correct, you cant drill down to the bit level in the browser. how would i add it manually? i have been trying with different a syntax

this is my tag from the explorer in designer

[Sample\_Tags]Controller:Global/B3/B3\_23\_

How do i add B3[23].15 to it

something like

[Sample\_Tags]Controller:Global/B3/B3\_23\_/.15 ? \<\< that doesn’t work by the way.

 ![bit stuff](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/04d3b46d30e127a3bec433e5840c625ab035c8f8.jpeg)

Cheers

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [April 22, 2022, 5:02am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/6 "2022-04-22T05:02:33Z")

</div>

You are showing a tag binding. You need to create an actual tag that has an OPC Item Path to the bit level, just as I have shown it.

Of course there are other ways you “can” check the 15th bit of an integer value, but that doesn’t seem like what you’re looking for.

For instance you could use an expression:

```auto
getBit({yourTag},15)

```

---

<div class="post-metadata">

**Author:** ![Ben\_Lindner](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@Ben\_Lindner](https://forum.inductiveautomation.com/u/Ben_Lindner)\
**Post date:** [April 22, 2022, 5:15am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/7 "2022-04-22T05:15:56Z")

</div>

Yea i am showing a tag binding as all of my other tags are done this way. For example

Here is a snippet of the screen i have created that’s running

 ![pic 1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/40bb904d9a58e7113f0610edd80f9a864cd2bf88.jpeg)

As you can see the discharge temp here can be selected in the tag browser as it doesn’t drill down as far.

 ![pic 2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/9/99a5d87d40f1183ef9760581715050f8281b4dc1.jpeg)

here is the tag screen from the PLC

 ![pic 3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/2/f276ceabf36bc96e7343d3fd8592b898aeeb3118.jpeg)

Is their a way to just address it at the bit level by adding to the string [Sample\_Tags]Controller:Global/B3/B3\_23\_ ?

---

<div class="post-metadata">

**Author:** ![Ben\_Lindner](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@Ben\_Lindner](https://forum.inductiveautomation.com/u/Ben_Lindner)\
**Post date:** [April 22, 2022, 10:32am UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/8 "2022-04-22T10:32:05Z")

</div>

Cant add a 4th picture to the above post so new post.

Im in the OPC tag menu, take this tag for example “Local:9:O.Data.5”

How do i address it in the item path? I have this “Local:9:O/5” so fare wich doesnt work (tried a few different variations)

 ![pic 4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/a/4a249fb40166b6347c65a84e900873974a4c3d6a.jpeg)

EDIT:

I get it now, this worked ns=1;s=[HC Man]Local:9:O.Data.5

Here is a SS for anyone who stumbles across it in the future

 ![pic 5](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/3/b364a6e0182552af3e6a5a59963580b75c1be84a.jpeg)

Can a mod change the title of the thread from

Long tags with Allen-Bradley CompactLogix, how to link to an asset?

To

Addressing Bits with h Allen-Bradley CompactLogix, how to link to an asset/?

Probably more relevant cheers

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 22, 2022, 12:09pm UTC](https://forum.inductiveautomation.com/t/addressing-bits-with-allen-bradley-compact-logix-how-to-link-to-an-asset/58673/9 "2022-04-22T12:09:40Z")

</div>

Just to summarize for future readers:

In the modern Logix driver, when constructing a path to a non-browsable item, the part of the OPC Item Path that follows `[deviceName]` will basically be identical to the syntax used within Rockwell’s Studio 5000.

For legacy ControlLogix and CompactLogix drivers, there are some extra elements inserted when arrays are involved, but the tail of the Item Path will follow RSLogix 5000 syntax.
