Unsigned Double Integer (DWORD) data type
Unsigned Double Integer (DWORD) variables are 32-bit unsigned integers from 0 through 4294967295.
A bit of an Unsigned Double Integer or DWORD variable can be accessed using the following syntax:
- Var1.[Var22], whereVar22is a 32-bit Unsigned Double Integer (UDINT) variable.
- Var1.[Bit22], whereBit22is a Defined Word (DWORD) that equals 22.
- MyVar.i, whereMyVaris an Unsigned Double Integer (or Double Word) variable andMyVar.iis a Boolean. The "i" must be a constant value from 0 through 31.
Direct bit addressing using a constant value:
- MyInteger.[3]
- MyInteger.3
Unsigned Double Integer (or Double Word) literal expressions represent unsigned double integer (32 bit) values from 0 through 4294967295.
Unsigned Double Integer (or Double Word) constants can be expressed with one of the following bases, and Unsigned Double Integer (or Double Word) constants must begin with a prefix that identifies the bases used:
Base | Prefix | Example |
---|---|---|
DECIMAL | (none) | +908 |
HEXADECIMAL | "16#" | 16#1A2B3C4D |
OCTAL | "8#" | 8#1756402 |
BINARY | "2#" | 2#1101_0001_0101_1101_0001_0010_1011_1001 |
TIP:
The underscore is used to separate groups of numbers. It has no significance other than to improve the readability of the literal expression.
Provide Feedback