SA0063: Possibly not 16-bit-compatible operationsPermalink

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 you have to write code 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

PROGRAM PLC_PRG
VAR
	iVar : INT;
END_VAR
iVar := (iVar + 10) / 2;

--> SA0063: Compatibility for 16 Bit - Possible truncated intermediate result