Compiler Error C0040
Message: Function '<function name>' requires exactly '<number of inputs>' inputs
Possible error cause: Too many or too few parameters are passed to the called function.
Error correction: Pass exactly as many parameters to the function as are expected.
Example 344. Example of the error:
PROGRAM PLC_PRG
VAR
i : INT;
END_VAR
i := TEST(1,2);
FUNCTION TEST : INT
VAR_INPUT
IN: INT;
END_VAR
Message:
C0040: Function 'TEST' requires exactly '1' inputs
Error correction:
i := Test(1);