-

Semantic Error: Method '...' does not take '...' arguments.

The call of the method mentioned in the error message does not match the implementation of the method. Input parameters have been added or deleted in the method but the already existing method call has not been updated accordingly.

Error example:

MyMethod originally contained 2 input parameters MethodIn and MethodIn2. With this implementation, the method is called in the code. Subsequently, MethodIn2 has been deleted in the method implementation. For that reason, the method call becomes invalid.

Double-clicking the error message opens the code of the calling POU and marks the invalid method call. To edit the method, right-click the marked method instance and select 'Go to Implementation' from the context menu.

To fix the error, either adapt the method call to the numbers of defined method input parameters or correct the input parameter declaration in the method.