Access single bit within a DINT data type

I need to access single bits within a DINT data type versus manually creating single bits from within the DINT. How can I do this?

In what context do you need to access them? Expression? Another tag? Script? Just read the bit, or write to it as well?

Can you try explaining this in another way?

Sure. I am creating a UDT and am currently reading in the DINT. I then have a label object with a few states (text and color) where I want to look at the value of one bit within the DINT. Or maybe I could create a boolean tag within the UDT that accesses the DINT but find bit 3 (.3) of the UDT?

The getBit expression is probably all you need.

1 Like

If you are just reading them:

1 Like

Nice...I'll check it out.

It worked. I knew there was something like this, just couldn't locate it right away. Thanks