Skip to main content

Compiler Error C0179

Message: '<identifier>' is no output of 'Function block'

Possible error cause: The initialization of a function block instance must not contain VAR_IN_OUT variables.

Error correction: Use VAR_IN_OUT variables in function block calls only. When initializing a function block instance, only assign the inputs of a function block.

Example 415. Example of the error:
Beispiel:
FUNCTION_BLOCK MyFB
VAR_IN_OUT
    inOut : INT;
END_VAR

PROGRAM PLC_PRG
VAR
    iValue : INT;
    fb : MyFB := (inOut := iValue);
END_VAR

Message:

C0179: 'inOut' is no output of 'MyFB'