An operand of data type DWORD is a bit string of 32 bits.
The following table shows the properties of data type DWORD:
Length (bits) | Format | Value range | Examples of value input | |
---|---|---|---|---|
Constants | Absolute and symbolic addresses | |||
32 | Integers (decimal system) | Signed integers: -2_147_483_647 to +2_147_483_647 Unsigned integers: 0 to 4_294_967_295 |
|
|
32 | Binary numbers | 2#0 to 2#1111_1111_1111_1 111_1111_1111_1111_ 1111 |
|
|
32 | Octal numbers | 8#0 to 8#37_777_777_777 |
|
|
32 | Hexadecimal numbers | 16#0000_0000 to 16#FFFF_FFFF |
|
|
32 | Decimal sequence | B#(0, 0, 0, 0) to B#(255, 255, 255, 255) | B#(127, 200, 127, 200) |
|
NOTE
The DWORD data type cannot be compared for more than or less than. It can only be supplied with the same decimal data that can be processed by the DINT and UDINT data types.