Compiler Error C0043

Message: Wrong formal parameter: '<parameter name>' expected in this place.

Possible error cause: The parameters are explicitly assigned to the function in the wrong order.

Error correction: Specify the parameters in the correct order.

Example of the error:

PROGRAM MAIN
VAR
     i : INT;
END_VAR
i := Test(iPar2 := 2, 5);


FUNCTION Test : INT
VAR_INPUT
    iPar1 : INT;
    iPar2 : INT;
END_VAR

Message:

Error correction:

i := Test(5, iPar2 := 2);