-

Semantic Error (SEM1118): The data type '...' of the expression attached to the parameter '...' of the function '...' is invalid. (Expected data type: '...')

An ST code worksheet contains an invalid function call: the expression specified for a function parameter has or returns not the data type the function parameter expects. This expression may be a literal, a constant variable, the result of an operation or another function.
The error message indicates the affected parameter name and the currently connected data type.

Error example: the AND function needs ANY_BIT data types but no Integer (ANY_NUM). ADD requires ANY_NUM.