Skip to main content

Compiler Error C0036

Message: Cannot call object of type <type>

Possible error cause: An attempt has been made to call an object that does not support any calls.

Error correction: Only functions, function blocks, programs, methods, and actions can be called.

Example 335. Example of the error:
VAR_GLOBAL GVL
    value : INT;
END_VAR
PROGRAM PLC_PRG
GVL();

Message:

C0036: Cannot call object of type 'VAR_GLOBAL'