Semantic Error: Argument ...: Cannot convert from '...' to '...'.
The input value passed to a method does not match the data type of the input parameter declared in the method and no implicit type conversion is possible.
Note
If possible, an implicit type conversion of the input value is performed. Implicit data type conversion means that the data type is automatically converted into the required data type, i.e., no explicit data type conversion function is required in the code. Implicit type conversion is for example possible for ANY_BIT data types, if the input parameter is greater than the applied value. |
Further Info
Refer to the topic "Implicit Type Conversion" for detailed information. |
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, adapt the data type of the connected value or of the method input variable.