-

Semantic Error (various between SEM1101 and SEM1113): Wrong or mismatching operand data types.

This help topic relates to the error messages SEM1101, SEM1102, SEM1104, SEM1105, SEM1106, SEM1107, SEM1108, SEM1109, SEM1110, SEM1111, SEM1112 and SEM1113.

In an ST code worksheet, the data types of operands used in a statement do not match. In the error message, the mismatching data type as well as the expected data type are specified.

Depending on the used operator, particular operand data types are expected.

OperatorExpected operands data types
Logical operations.
Operators: AND, &, OR, XOR, NOT
ANY_BIT ‣ Generic Data Types according to IEC 61131-3
×‣ Generic Safety-Related Data Types
×
Arithmetic operations.
Operators: +, -, *, /
ANY_NUM ‣ Generic Data Types according to IEC 61131-3
×‣ Generic Safety-Related Data Types
×
Negation.
Operators: NEG
ANY_NUM ‣ Generic Data Types according to IEC 61131-3
×‣ Generic Safety-Related Data Types
×
Modulo operation.
Operator: MOD
ANY_INT ‣ Generic Data Types according to IEC 61131-3
×‣ Generic Safety-Related Data Types
×
Comparison.
Operator: <, <=, =>, >
ANY_ELEMENTARY ‣ Generic Data Types according to IEC 61131-3
×‣ Generic Safety-Related Data Types
×

Further Info
For information on the correct ST syntax refer to the topic "ST code objects".