Compiler Error C0080

Message

Function block ‘<function block name>’ must be instantiated to be accessed

Message Cause

Missing function block instantiation.

Solution

Instantiate the function block.

Error Example

PROGRAM PLC_PRG
VAR
END_VAR

FB();

FUNCTION_BLOCK FB
VAR
END_VAR

--> C0080: Function block 'FB' must be instantiated to be accessed

Error Correction

VAR
 inst : FB;
END_VAR
inst();