Skip to main content

Compiler Warning C0517

Message: Should not access internal object <object name> of library <library name>

Possible error cause: A library contains a POU, whose visibility is restricted to this library with the INTERNAL keyword. The POU in a SIZEOF operator is used from outside of this library.

Error correction: Change the visibility of the POU (for example, remove the INTERNAL keyword) or change the declaration of the variable.

Example 485. Example of the warning
PROGRAM PLC_PRG
VAR
    somevar1 : INT := SIZEOF(MyLib.POU);
END_VAR

Message:

C0517: Should not access internal object POU of library MyLib, 1.0.0.0 (MyCompany)