W_INT_REAL: Type conversion (WORD -> INT -> REAL) (W_INT_REAL: Type conversion (WORD -> INT -> REAL))
Original instructions
Function description
This function converts an input value with data type WORD to data type INT and then data type REAL.
As opposed to the WORD_TO_REAL conversion module (standard library), the W_INT_REAL module performs a conversion to an INT value prior to output of the REAL value. The result is, for example, that the input value FFFF is output as output value -1.0. (Not as with the WORD_TO_REAL module, for which the output value 9.183409e-41 is set).
As additional parameters, EN and ENO are projected.
Representation in FBD
Representation:
Representation in LD
Appearance:
Representation in IL
Appearance:
LD WordValue 
W_INT_REAL 
ST RealValue
Representation in ST
Appearance:
RealValue := W_INT_REAL (WordValue);
Parameter description
Description of input parameters:
Parameter
Data type
Description
INP
Input value
Description of output parameters:
Parameter
Data type
Description
OUTP
Output value