Compiler Error C0015
Message: Counter initialization expected.
Possible error cause: Syntax error in a FOR loop. The counter variable is not initialized correctly.
Error correction: Pay attention to the correct syntax of the FOR loop.
Example of the error:
PROGRAM MAIN
VAR
i: INT;
END_VAR
FOR i TO 10 DO
;
END_FORMessage:
C0015: Counter initialization expected.
Error correction:
FOR i := 0 TO 10 DO
;
END_FOR