Skip to main content

Compiler Error C0216

Message: Case label duplicate

Possible error cause: A CASE label is used multiple times.

Error correction: Use each CASE label only one time.

Example 439. Example of the error:
PROGRAM PLC_PRG
VAR
    i : INT;
END_VAR

CASE i OF
  1: i := i+1;
  1: i := i+2;
ELSE
  i := i+10;
END_CASE;

--> C0216: Doppelte 'CASE'-Marke

Message:

C0216: Case label duplicate