Error del compilador C0032

Mensaje

Cannot convert type ‘STRING’ to type ‘INT’

Causa del mensaje

Una variable se ha asignado a otra con un tipo incompatible.

Solución

Use una conversión de tipo.

Ejemplo de error

PROGRAM PLC_PRG
VAR
 test1: INT;
 test2: STRING;
END_VAR

test1 := test2;

-->C0032: Cannot convert type ‘STRING’ to type ‘INT’

Solución del error

test1 := STRING_TO_INT(test2);