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" | UDINT |
"L" | LINT |
"UL" | ULINT |
Floating Point Immediate Values
If you enter | The controller stores |
---|---|
Without any suffix | REAL |
"L" | LREAL |
Provide Feedback