-

Semantic Error (SEM1275): The value '...' exceeds the range '...' to '...' of data type '...'.

In a CASE selection statement in ST, the value of the variable following the keyword CASE exceeds the value range of the declared data type.

Error example

The variable a is of the data type INT. The second CASE selection exceeds the maximum INT value.

Remedy

Double-clicking the error message opens the code and marks the incorrect code position. Correct the value or modify the data type of the expression variable accordingly.