An operand of data type WORD is a bit string of 16 bits.
The following table shows the properties of data type WORD:
Length (bits) | Format | Value range | Examples of value input | |
---|---|---|---|---|
Constants | Absolute and symbolic addresses | |||
32 | Integers (decimal system) | Signed integers: -32_768 to +32_767 Unsigned integers: 0 to 65_535 |
|
|
32 | Binary numbers | 2#0 to 2#1111_1111_1111_111 1 |
|
|
32 | Octal numbers | 8#0 to 8#177_777 |
|
|
32 | Hexadecimal numbers | 16#0 to 16#FFFF |
|
|
32 | BCD | C#0 to C#999 | C#55 |
|
32 | Decimal sequence | B#(0, 0) to B#(255, 255) | B#(127, 200) |
|
NOTE
The WORD 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 INT and UINT data types.