Cannot convert type ‘STRING’ to type ‘INT’
Una variable se ha asignado a otra con un tipo incompatible.
Use una conversión de tipo.
PROGRAM PLC_PRG
VAR
test1: INT;
test2: STRING;
END_VAR
test1 := test2;
-->C0032: Cannot convert type ‘STRING’ to type ‘INT’
test1 := STRING_TO_INT(test2);