Invalid number of arguments
An invalid number of arguments was passed to a POU. For example
FUNCTION foo
(* ... *)
END_FUNCTION
FUNCTION main : DINT
foo('bar'); // Error, foo isn't expecting any arguments
END_FUNCTION
Note that for FUNCTION
s the argument count must match with the parameter list and can be bigger if a variadic
parameter is present. For stateful POUs variadic parameters are not supported, thus the argument count must be equal
or less than the parameter list depending on whether optional arguments such as VAR_INPUT
or VAR_OUTPUT
were
passed or not.