4257

“Variable of ‘FOR’ statement must be of type ‘INT’”

Make sure that the counter variable is of an integer or bitstring data type (e.g. DINT, DWORD).