Implicit conversion from an unsigned type ‘<data type 1>’ to a signed type ‘<data type 2>’ : possible change of sign
符号冲突可能在隐式转换中丢失。
使用显式转换。
PROGRAM PLC_PRG
VAR
i : INT;
b : UINT;
END_VAR
i := b;
--> C0196: Implicit conversion from an unsigned type 'UINT' to a signed type 'INT' : possible change of sign