Read your post a little more, not sure what you are trying to do but you have an integer variable & trying to assign a real value is that correct, or is the real value from some other variable that is a real & you are trying to write it to an integer variable ?
If the value is fixed i.e. Valor:= 1.5 will not work but Valor:= 1 will.
Or if Valor is a real
for example:
Valor: releal;
My_Int: Integer;
Valor := 1.5;
REAL_TO_INT [Valor, My_Int];
But if as Manglemender suggests & it is Siemens then follow his suggestion.
Or RND[Valor, My_Int]; however, this may return a 32 bit long integer not a standard integer;