Skip to main content

Compiler Error C0072

Message: Operator '<operator name>' is not possible on type '<data type>'

Possible error cause: An operator is applied to an incompatible type.

Error correction: Apply operators only on compatible types.

Example 359. Example of the error:
PROGRAM PLC_PRG
VAR
    i : INT;
    str : STRING;
END_VAR

str := ABS(str);

Message:

C0072: Operator 'Abs' is not possible on type 'STRING'

Error correction:

i := ABS(i);