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 328. Example of the error:
PROGRAM PLC_PRG
VAR
i: INT;
END_VAR
FOR i TO 10 DO
;
END_FOR
--> C0015: Zählvariableninitialisierung erwartetMessage:
C0015: Counter initialization expected
Error correction:
FOR i := 0 TO 10 DO
;
END_FOR