Skip to main content

Compiler Error C0069

Message: Compare not possible on objects of type '<data type>' or '<data type>'

Possible error cause: Two different objects are being compared in which a comparison is not possible.

Error correction: Compare only data types in which a comparison is possible (INT, REAL, etc.).

Example 357. Example of the error:
PROGRAM PLC_PRG
VAR
    b : BOOL;
    arr1 : ARRAY [1..2] OF INT;
    arr2 : ARRAY [1..3] OF INT;
END_VAR

b := arr1 > arr2;

Message:

C0069: Compare not possible on objects of type 'ARRAY [1..2]' or 'ARRAY [1..3]'