BITADRΒΆ

The IEC Operators and additional, norm-extending \ functions Address Function not prescribed by the standard IEC 61131-3.

BITADR returns the bit offset within the segment in a DWORD. Note that the offset value depends on whether the option byte addressing in the target settings is activated or not.

VAR
 var1 AT %IX2.3:BOOL;
 bitoffset: DWORD;
END_VAR

Example in ST:

Example in IL:

LD Var1
BITADR
ST Var2

Attention

After an Online Change there might be changes concerning the data on certain addresses. Please regard this in case of using pointers on addresses.