Errore compilatore C0027

Messaggio

Size of string expected after ‘(‘

Causa messaggio

La lunghezza della stringa non è specificata.

Soluzione

Specificare una lunghezza di stringa all’interno delle parentesi.

Esempio di errore

PROGRAM PLC_PRG
VAR
  str : STRING();
END_VAR

--> C0027: size of string expected after '('

--> C0006: ';, :=, REF=, ( or [' expected instead of ')'

Correzione errore

str : STRING(100);