Compiler Error C0042 (Compiler Version <= 3.4.10)
Message: Either all or none formal parameter have to be denoted in function call
Possible error cause: The parameters are explicitly assigned to the function in the wrong order.
Error correction: Use uniform formal parameters or implicit parameters.
Example 341. Example of the error:
PROGRAM PLC_PRG VAR i : INT; END_VAR i := Test(iPar1:=2, 5); FUNCTION Test : INT VAR_INPUT iPar1 : INT; iPar2 : INT; END_VAR
Message:
C0042: Either all or none formal parameter have to be denoted in function call