Message: Wrong formal parameter: '<parameter name>' expected in this place
Possible error cause: The parameters are assigned to the function explicitly in the wrong order.
Error correction: Specify the parameters in the correct order.
Example of the error:
PROGRAM PLC_PRG VAR i : INT; END_VAR i := Test(iPar2 := 2, 5); FUNCTION Test : INT VAR_INPUT iPar1 : INT; iPar2 : INT; END_VAR --> C0043: Wrong formal parameter: 'iPar1' expected in this place --> C0412: Multiple input assignments for parameter ''
Error correction:
Example: i := Test(5, iPar2 := 2);