Skip to main content

Compiler Error C0225

Message: '<name>' is not an instance of '<name>'

Possible error cause: A function block in a graphical programming language has been assigned with an explicitly specified type that does not match the declared type.

Error correction: Replace the explicit type with the one used in the declaration part, or remove the specification of the explicit type from the POU.

Example 446. Example of the error:
_cds_img_error_c2025_1.png
PROGRAM PLC_PRG
VAR
    fbVar : MyFB;
END_VAR

Message:

C0225: 'fbVar‘ is not an instance of 'MyFB2‘

Error correction:

_cds_img_error_c0225_3.png

or

_cds_img_error_c0225_2.png