Skip to main content

Compiler Error C0044

Message: Assignment to input missing for parameter '<input variable name>' in call of '<function block name>'

Possible error cause: A parameter is passed although an input variable is not declared.

Error correction: Declare an input variable.

Example 343. Example of the error:
PROGRAM PLC_PRG
VAR
    inst : FB;
END_VAR
inst(1);


FUNCTION_BLOCK FB
VAR_INPUT

END_VAR

Message:

C0044: Assignment to input missing for parameter '1' in call of 'FB'

Error correction:

Beispiel:
VAR_INPUT
    in : INT;
END_VAR