SA0063: Possibly not 16-bit-compatible operations
Detects 16-bit operations with temporary results. Background: On 16-bit systems, 32-bit temporary results can be truncated. Example: (int+10)
can exceed 16 bits.
Justification: In the very rare case that code has to be written which should run on a 16-bit processor as well as on a 32-bit processor, this message should help to prevent any problems.
Importance: Low
Example 74. Example
PROGRAM PLC_PRG VAR iVar : INT; END_VAR
iVar := (iVar + 10) / 2;
Output in the Messages view:
SA0063: Compatibility for 16 Bit – Possible truncated intermediate result