# How do I access individual Bits of a DINT?

**URL:** <https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644>\
**Category:** Ignition\
**Created:** [March 16, 2010, 12:27am UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644 "2010-03-16T00:27:16Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 21, 2010, 4:04pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/21 "2010-04-21T16:04:23Z")

</div>

hmmm, I have seen some huge programs in the controllogix line, and none have used bit packing. I would bet that the programmer was a little more worried about the extra programming time as opposed to the “extra PLC space”. unless your plc program is ginormous I would be surprised if it is really an issue. 🙂

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [April 22, 2010, 4:11am UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/22 "2010-04-22T04:11:01Z")

</div>

We use bit packing into DINTs for our first out and horn logic. One program has 3000 bits packed into DINTs. DINT packing is still used in the CLX line, especially if you are using remote comms via some legacy network protocol

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [April 22, 2010, 12:14pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/23 "2010-04-22T12:14:58Z")

</div>

yeah, I do use bit packing for first out logic, but I just havent seen much of it for comms anymore, should have been more specific. used to be we used it alot in the offshore environment due to limited communications options. thats not really an issue anymore.

---

<div class="post-metadata">

**Author:** ![thechtman](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@thechtman](https://forum.inductiveautomation.com/u/thechtman)\
**Post date:** [April 22, 2010, 7:52pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/24 "2010-04-22T19:52:02Z")

</div>

Ok, good things come to those who wait. Accessing bits in a DINT. SINT, INT and LINT will be possible in the 7.1 release.

---

<div class="post-metadata">

**Author:** ![thechtman](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@thechtman](https://forum.inductiveautomation.com/u/thechtman)\
**Post date:** [April 23, 2010, 1:48am UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/25 "2010-04-23T01:48:14Z")

</div>

The current development release has support for accessing bits in a DINT. SINT, INT. Because RSLogix doesn’t include bits in LINT data types, I left out LINT.

---

<div class="post-metadata">

**Author:** ![ISDProj](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@ISDProj](https://forum.inductiveautomation.com/u/ISDProj)\
**Post date:** [April 23, 2010, 2:20am UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/26 "2010-04-23T02:20:42Z")

</div>

Woo Hoo!

Thanks… I promise I’l be patient this time ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")  
(LINT types aren’t a problem for us as the PLC programmers here prefer DINT’s for just about everything)

---

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [May 25, 2011, 3:53pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/27 "2011-05-25T15:53:54Z")

</div>

Could you please post an example of the tag syntax for accessing a bit within a DINT in a Controllogix? We are using ver. 7.2.6 and can’t seem to access individual bits. Tag example: [SS\_Cfax]Global.MOTORS.MOTORS[1].HOA  
Also, even if we could, it doesn’t appear (assumption here) that the individual bits would be available when configuring Client or Gateway Event scripts. Is this true?  
Thanks

---

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [May 25, 2011, 4:02pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/28 "2011-05-25T16:02:05Z")

</div>

Let me clarify the previous muddled question - Can Ignition access individual bits in a DINT without creating a new tag for each bit?  
Ex: SS\_CFAX/MOTORS/MOTOR\_1/HOA.0  
When adding the .0 or /0 to the end of the tag an error occurs. Is this possible some other way?  
Thanks

---

<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:** [May 25, 2011, 4:21pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/29 "2011-05-25T16:21:44Z")

</div>

[quote=“scott\_stc”]Let me clarify the previous muddled question - Can Ignition access individual bits in a DINT without creating a new tag for each bit?  
Ex: SS\_CFAX/MOTORS/MOTOR\_1/HOA.0  
When adding the .0 or /0 to the end of the tag an error occurs. Is this possible some other way?  
Thanks[/quote]

A new SQLTag is required for each bit.

---

<div class="post-metadata">

**Author:** ![11thchair](https://avatars.discourse-cdn.com/v4/letter/1/4da419/32.png) [@11thchair](https://forum.inductiveautomation.com/u/11thchair)\
**Post date:** [September 21, 2011, 7:43pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/30 "2011-09-21T19:43:42Z")

</div>

Reading through this thread and gradually understanding what is being said. I have a SLC and can write to the PLC with [OfficeSlc]B3:2.0 or [OfficeSlc]B3:2/0 with a toggle button. I try the one-shot button and the bit gets turned on and stays “Writing…” and never turns off. So maybe I don’t understand the one shot. How does one pulse a bit?

---

<div class="post-metadata">

**Author:** ![11thchair](https://avatars.discourse-cdn.com/v4/letter/1/4da419/32.png) [@11thchair](https://forum.inductiveautomation.com/u/11thchair)\
**Post date:** [September 21, 2011, 8:57pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/31 "2011-09-21T20:57:02Z")

</div>

Figured out the “one-shot” is actually a latched. The user manual spoke of a “momentary button” but that does not come up when I drag a tag to the screen. Got the one-shot to work, but would like to know if there is a momentary button?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 21, 2011, 9:38pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/32 "2011-09-21T21:38:18Z")

</div>

Picture’s worth 1000 words. Dragging a tag onto a screen is not the only way to create a component, just a shortcut for some common actions.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/0137aee1c8ddd6519b779b676d410b5a350e8ae3.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 11, 2018, 7:13pm UTC](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644/33 "2018-09-11T19:13:02Z")

</div>

2 posts were split to a new topic: [Accessing individual bits in controllogix](https://forum.inductiveautomation.com/t/accessing-individual-bits-in-controllogix/19628)

[Previous page](https://forum.inductiveautomation.com/t/how-do-i-access-individual-bits-of-a-dint/1644.md?page=1)
