Immediate values
When you enter an immediate value (constant) in decimal format (for example, -2, 3) the controller stores the value by using 32 bits. If you enter a value in a radix other than decimal, such as binary or hexadecimal, and do not specify all 32 bits, the controller places a zero in the bits that you do not specify (zero-fill).
IMPORTANT:
Zero-fill of immediate binary, octal or hexadecimal values less than 32 bits.
If you enter | The controller stores |
-1 | 16#ffff ffff (-1) |
16#ffff (-1) | 16#0000 ffff (65535) |
8#1234 (668) | 16#0000 029c (668) |
2#1010 (10) | 16#0000 000a (10) |
Integer Immediate Values
If you enter | The controller stores |
Without any suffix | DINT |
"U" or "u" | UDINT |
"L" or "l" | LINT |
"UL", "ul", "Ul", or "uL" | ULINT |
Floating Point Immediate Values
If you enter | The controller stores |
Without any suffix | REAL |
"L" or "l" | LREAL |
Provide Feedback