-

Semantic Error (SEM1080): The data type of the control variable ('...') is not 'ANY_INT'.

In a FOR statement (ST code), all involved variables (control variable, start value, end value and increment value) must be of the data type ANY_INT (LINT, DINT, INT, SINT, ULINT, UDINT, UINT, USINT).

Example:

In a worksheet, another data type is used instead at the underlined position. Enter an ANY_INT variable to correct the statement.

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