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 of the error:

VAR_GLOBAL GVL
value : INT;
END_VAR
PROGRAM MAIN
GVL();

Message:

C0036: Cannot call object of type 'VAR_GLOBAL'