Semantic Error (SEM1085): The '...' statement expects an expression of type 'BOOL'.
In an IF statement (ST code), the control expression must return a Boolean value. If a Boolean value is to be evaluated, the expression can be reduced to the variable itself.
The following notations are possible:
In your ST code, another data type than BOOL was specified alone at the underlined position, thus forming no Boolean expression.
Further Info
For information on the correct ST syntax refer to the topic "ST code objects". |