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