Bit Access
You can directly specify a bit within an integer variable in expressions and diagrams using this notation:
Variable.BitNo
Where:
Variable: is the name of an integer variable.
BitNo: is the number of the bit in the integer.
The variable can have one of these data types:
- SINT, USINT, BYTE (8-bits from .0 to .7)
- INT, UINT, WORD (16-bits from .0 to .15)
- DINT, UDINT, DWORD (32-bits from .0 to 31)
- LINT, ULINT, LWORD (64-bits from .0 to .63)
0 (zero) always represents the less significant bit.





