DWORD¶
Bit string of 32 bits.
Size |
32 bits |
Range |
16#00000000 to 16#FFFFFFFF |
Default |
16#00000000 |
IEC 61131-3 |
Section 2.3.1 |
Support |
Supported |
Literals¶
DWORD#16#DEADBEEF
DWORD#16#00FF00FF
Example¶
config := DWORD#16#00FF0000;
flag_bit := DWORD#16#00000001;
updated := config OR flag_bit; (* updated = 16#00FF0001 *)
Bit Access¶
Individual bits can be read and written using .n or .%Xn syntax
(for example, config.12 or config.%X12). Valid indices are
0..31. See Bit Access.
See Also¶
WORD — 16-bit bit string
LWORD — 64-bit bit string
UDINT — 32-bit unsigned integer
Bit Access — selecting an individual bit of a bit-string value