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 342. 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
Message:
C0043: Wrong formal parameter: 'iPar1' expected in this place
C0412: Multiple input assignments for parameter ''
Error correction:
i := Test(5, iPar2 := 2);